.select-field {
    display: flex;
    justify-content: left;
    align-items: center;
    flex-wrap: wrap;
}

.info-field {
    background-color: rgba(128, 128, 128, 0.1);
    border-radius: 8px;
    padding: 0;
}

.info-field table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.info-field tr {
    cursor: pointer;
}

.info-field tr:hover {
    background-color: rgba(213, 212, 212, 0.8);
}

tr input[type="text"] {
    border: none;
    background-color: rgba(0,0,0,0);
}

.info-field .selected {
    background-color: rgba(126, 125, 125, 0.9);
}

.info-field th {
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    text-align: left;
}

.info-field td {
    border: 1px solid #ddd;
    padding: 8px;
}

.info-field input[type="text"] {
    width: 100%;        /* 宽度适应父元素的宽度 */
}

.option {
    margin: 0 20px 0 20px;
    cursor: pointer;
    position: relative;
    transition: 0.4s;
}

.option-selected {
    margin: 0 20px 0 20px;
    cursor: pointer;
    position: relative;
    transition: 0.4s;
}

.option-selected :after {
    content: url(../../../assets/images/ArrowSelect.png);
    width: 15px;
    height: 15px;
    margin-top: 5px;
    display: block;
    z-index: 999;
    position: relative; /* 使用绝对定位 */
    top: 50%; /* 将伪元素移动到垂直居中 */
    left: 50%; /* 将伪元素移动到水平居中 */
    transform: translate(-50%, -50%); /* 使用 transform 属性调整位置 */
}

.option img {
    width: 50px;
    height: 50px;
    display: block;
    margin-bottom: 5px;
}

.option-selected img {
    width: 55px;
    height: 55px;
    display: block;
    margin-bottom: 5px;
}

#category-id :after {
    height: 30px;
}

.loader {
    border: 4px solid #f3f3f3; /* 加载动画的边框颜色 */
    border-top: 4px solid #3498db; /* 加载动画的顶部边框颜色 */
    border-radius: 50%; /* 加载动画的边框半径，使其呈现为圆形 */
    width: 30px; /* 加载动画的宽度 */
    height: 30px; /* 加载动画的高度 */
    animation: spin 1s linear infinite; /* 定义旋转动画 */
    margin: auto; /* 居中显示 */
}

.error {
    font-size: 22px;
    font-style: italic;
    width: 200px;
    color: red;
    margin: auto; /* 居中显示 */
}

.blur-effect {
    filter: blur(5px); /* 使用模糊效果 */
    pointer-events: none; /* 防止被点击 */
}

.blur-effect-dark {
    background-color: #FFFFFF;
    filter: blur(1px) brightness(90%); /* 使用模糊效果,亮度降低 */
    pointer-events: none; /* 防止被点击 */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    /* 开始时旋转角度为0度 */
    100% {
        transform: rotate(360deg);
    }
    /* 结束时旋转角度为360度 */
}

.sidebar {
    position: fixed;
    border: 2px solid rgba(41, 68, 73, 0.2);
    border-radius: 10px;
    padding-left: 10px;
    padding-top: 10px;
    top: 70px;
    right: -1020px;
    width: 830px;
    height: 0;
    background-color: rgb(220, 245, 250);
    z-index: 1;
}

#product-id {
    width: fit-content;
    font-size: 20px;
    margin-left: 1px;
    transition: margin-left 0.4s ease; /* 添加过渡效果 */
}

#item-id {
    font-size: 18px;
}

.product-info {
    width: 500px; /* 侧边栏padding为10px */
    position: absolute;
    top: 10px;
    left: 10px;
    animation-duration: 1s;
}

.item-info {
    background-color: #f2f2f2;
    margin-left: 10px;
    padding: 0 10px 0 10px;
    width: 300px; /* 侧边栏padding为10px */
    border: 1px solid rgba(41, 68, 73, 0.2);
    border-radius: 5px;
    animation-duration: 1s;
    position: absolute;
    top: 10px;
    right: 10px;
}
.item-info table {
    background-color: #f2f2f2;
}
.item-info td {
    background-color: #f2f2f2;
}
.item-info tr:hover {
    background-color: #f2f2f2;
}

/* 默认链接样式 */
table a {
    color: black; /* 默认字体颜色为黑色 */
    text-decoration: underline; /* 默认带下划线 */
    transition: color 0.3s; /* 添加颜色变化的过渡效果 */
}

/* 悬停链接样式 */
table a:hover {
    color: #656464; /* 悬停时字体颜色变亮 */
}

.operator {
    position: relative;
    right: 0;
    margin: 0 auto;
}

.operator button {
    width: 62px;
    height: 30px;
    margin-left: 20px;
    font-weight: bold;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background-color: rgba(128, 128, 128, 0.1);
    cursor: initial;
    pointer-events: unset;
    box-shadow: 1px 2px 0 1px rgba(15, 15, 15, 0.2);
}

.operator-enabled button {
}

#edit-button.operator-enabled  {
    background-color: rgba(133, 255, 133, 0.8);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 1px 2px 0 1px rgba(15, 15, 15, 0.6);
}
#edit-button:hover.operator-enabled  {
    filter: brightness(0.9);
}

#delete-button.operator-enabled  {
    background-color: rgba(255, 0, 0, 0.8);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 1px 2px 0 1px rgba(15, 15, 15, 0.6);
}
#delete-button:hover.operator-enabled {
    filter: brightness(0.9);
}

#save-button.operator-enabled  {
    background-color: rgba(166, 252, 166, 0.8);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 1px 2px 0 1px rgba(15, 15, 15, 0.6);
}
#save-button:hover.operator-enabled  {
    filter: brightness(0.9);
}

#cancel-button.operator-enabled  {
    background-color: rgba(205, 248, 205, 0.8);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 1px 2px 0 1px rgba(15, 15, 15, 0.6);
}
#add-button:hover.operator-enabled  {
    filter: brightness(0.9);
}

#add-button.operator-enabled  {
    color: #ffffff;
    background-color: rgba(40, 139, 255, 0.8);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 1px 2px 0 1px rgba(15, 15, 15, 0.6);
}
#cancel-button:hover.operator-enabled  {
    filter: brightness(0.9);
}

/* 防止点击事件 */
.prevent-click-event {
    pointer-events: none;
}

.dialog-open {
    pointer-events: none;
    filter: blur(1px) brightness(80%);
}
